import { createBrowserRouter } from "react-router-dom";
// 首页
import App from "../App";
import Home from "../pages/home/Index";
import Index from "../pages/index/Index";
import Order from "../pages/order/Index";
import Case from "../pages/case/Index";
import Shop from "../pages/shop/Index";
// 一级
import Login from "../pages/login/Index";
import Set from "../pages/set/Index";
import Chat from "../pages/chat/Index";
import Search from "../pages/search/Index";
import Add from "../pages/add/Index";
// 列表跳转
import Detail from "../pages/detail/Index";
import Address from "../pages/address/Index";
import Card from "../pages/card/Index";
import Yue from "../pages/yue/Index";
import Price from "../pages/price/Index";
import Idea from "../pages/idea/Index";
import User from "../pages/user/Index";
import Yin from "../pages/yin/Index";
import About from "../pages/about/Index";
import Vip from "../pages/vip/Index";
import More from "../pages/more/Index";
import Pin from "../pages/pin/Index";
import Yu from "../pages/yu/Index";
import Ji from "../pages/ji/Index";
import Fu from "../pages/fu/Index";
import Doctor from "../pages/doctor/Index";
import One from "../pages/re1/Index";
import Two from "../pages/re2/Index";
import Three from "../pages/re3/Index";
import View from "../pages/view/Index";
import Loc from "../pages/loc/Index";
import File from "../pages/file/Index";
// 住院门诊
import Zhu from "../zhu/zhu/Index";
import Zhu2 from "../zhu/zhu2/Index";
import Zhu3 from "../zhu/zhu3/Index";
import Zhu4 from "../zhu/zhu4/Index";
import Zhu5 from "../zhu/zhu5/Index";
import Yuan from "../zhu/yuan/Index";
import Deng from "../zhu/deng/Index";
import Note from "../zhu/note/Index";
// 首页
import Sy from "../sy/sy/Index";
import Sy2 from "../sy/sy2/Index";
import Sy3 from "../sy/sy3/Index";
import AI from "../sy/AI/Index";
import Xu from "../sy/xu/Index";
import Ke from "../sy/ke/Index";
import Gong from "../sy/gong/Index";
import List from "../sy/list/Index";
import Pai from "../sy/pai/Index";
import Zhi from "../sy/zhi/Index";
import Que from "../sy/que/Index";
import Orderdetail from "../sy/order-detail/Index";
import Gua from "../sy/gua/Index";
import Men from "../sy/men/Index";
// 门诊
import Mz from "../men/mz/Index";
import Bao2 from "../men/bao2/Index";
import Hou from '../men/hou/Index'
import Hd from '../men/hd/Index'
import Shen from '../men/shen/Index'
import Xue from '../men/xue/Index'
import Dan from '../men/dan/Index'

// 三级
import Hot from "../pages/case/hot/Index";
import News from "../pages/case/news/Index";
export const tworouter = [
  {
    path: "/home",
    element: <Home />,
    title: "就医",
  },
  {
    path: "/index",
    element: <Index />,
    title: "消息",
  },
  {
    path: "/order",
    element: <Order />,
    title: "订单",
  },
  {
    path: "/case",
    element: <Case />,
    title: "患者病例",
    children: [
      {
        path: "/case/hot",
        element: <Hot />,
      },
      {
        path: "/case/news",
        element: <News />,
      },
    ],
  },
  {
    path: "/shop",
    element: <Shop />,
    title: "商城",
  },
];
export const router = createBrowserRouter([
  {
    path: "/",
    element: <App />,
    children: tworouter,
  },
  {
    path: "/login",
    element: <Login />,
  },
  {
    path: "/set",
    element: <Set />,
  },
  {
    path: "/chat",
    element: <Chat />,
  },
  {
    path: "/address",
    element: <Address />,
  },
  {
    path: "/card",
    element: <Card />,
  },
  {
    path: "/yue",
    element: <Yue />,
  },
  {
    path: "/price",
    element: <Price />,
  },
  {
    path: "/idea",
    element: <Idea />,
  },
  {
    path: "/user",
    element: <User />,
  },
  {
    path: "/yin",
    element: <Yin />,
  },
  {
    path: "/about",
    element: <About />,
  },
  {
    path: "/Search",
    element: <Search />,
  },
  {
    path: "/add",
    element: <Add />,
  },
  {
    path: "/vip",
    element: <Vip />,
  },
  {
    path: "/more",
    element: <More />,
  },
  {
    path: "/pin",
    element: <Pin></Pin>,
  },
  {
    path: "/yu",
    element: <Yu></Yu>,
  },
  {
    path: "/ji",
    element: <Ji></Ji>,
  },
  {
    path: "/fu",
    element: <Fu></Fu>,
  },
  {
    path: "/detail",
    element: <Detail />,
  },
  {
    path: "/doctor",
    element: <Doctor />,
  },
  {
    path: "/one",
    element: <One />,
  },
  {
    path: "/two",
    element: <Two />,
  },
  {
    path: "/three",
    element: <Three />,
  },
  {
    path: "/view",
    element: <View />,
  },
  {
    path: "/loc",
    element: <Loc />,
  },
  {
    path: "/file",
    element: <File />,
  },
  {
    path: "/zhu",
    element: <Zhu />,
  },
  {
    path: "/zhu2",
    element: <Zhu2 />,
  },
  {
    path: "/zhu3",
    element: <Zhu3 />,
  },
  {
    path: "/zhu4",
    element: <Zhu4 />,
  },
  {
    path: "/zhu5",
    element: <Zhu5 />,
  },
  {
    path: "/sy",
    element: <Sy />,
  },
  {
    path: "/sy2",
    element: <Sy2 />,
  },
  {
    path: "/sy3",
    element: <Sy3 />,
  },
  {
    path: "/AI",
    element: <AI />,
  },
  {
    path: "/xu",
    element: <Xu />,
  },
  {
    path: "/ke",
    element: <Ke />,
  },
  {
    path: "/gong",
    element: <Gong />,
  },
  {
    path: "/list",
    element: <List />,
  },
  {
    path: "/pai",
    element: <Pai />,
  },
  {
    path: "/zhi",
    element: <Zhi />,
  },
  {
    path: "/que",
    element: <Que />,
  },
  {
    path: "/order-detail",
    element: <Orderdetail />,
  },
  {
    path: "/gua",
    element: <Gua />,
  },
  {
    path: "/men",
    element: <Men />,
  },
  {
    path: "/yuan",
    element: <Yuan />,
  },
  {
    path: "/deng",
    element: <Deng />,
  },
  {
    path: "/note",
    element: <Note />,
  },
  {
    path:'/mz',
    element:<Mz/>,
  },
  {
    path:'/bao2',
    element:<Bao2/>,
  },
  {
    path:'/hou',
    element:<Hou/>,
  },
  {
    path:'/hd',
    element:<Hd/>,
  },
  {
    path:'/shen',
    element:<Shen/>,
  },
  {
    path:'/xue',
    element:<Xue/>,
  },
  {
    path:'/dan',
    element:<Dan/>,
  }

  

  
]);

export default router;
